package com.taa.infrastructure.dao;

import com.taa.infrastructure.dao.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: taa
 * @Desc: 用户Dao
 * @Create: 2025-06-01 15:39
 **/
@Mapper
public interface IUserDao {
    int insert(User user);

    int update(User user);

    User selectById(@Param("id") Long id);

    User selectByUserName(@Param("userName") String userName);

    List<User> selectListByStatus(@Param("status") Integer status);

    int updateStatus(@Param("id") Long id, @Param("status") Integer status);
    
}

